Unable to resolve "unable to get local issuer certificate" using git on Windows with self-signed certificate
NickName:RichardHowells Ask DateTime:2014-05-27T17:15:12

Unable to resolve "unable to get local issuer certificate" using git on Windows with self-signed certificate

I am using Git on Windows. I installed the msysGit package. My test repository has a self signed certificate at the server. I can access and use the repository using HTTP without problems. Moving to HTTPS gives the error:

SSL Certificate problem: unable to get local issuer certificate.

I have the self signed certificate installed in the Trusted Root Certification Authorities of my Windows 7 - client machine. I can browse to the HTTPS repository URL in Internet Explorer with no error messages.

This blog post by Philip Kelley explained that cURL does not use the client machine's certificate store. I followed the blog post's advice to create a private copy of curl-ca-bundle.crt and configure Git to use it. I am sure Git is using my copy. If I rename the copy; Git complains the file is missing.

I pasted in my certificate, as mentioned in the blog post, I still get the message "unable to get local issuer certificate".

I verified that Git was still working by cloning a GitHub Repository via HTTPS.

The only thing I see that's different to the blog post is that my certificate is the root - there is no chain to reach it. My certificate originally came from clicking the IIS8 IIS Manager link 'Create Self Signed Certificate'. Maybe that makes a certificate different in some way to what cURL expects.

How can I get Git/cURL to accept the self signed certificate?

Copyright Notice:Content Author:「RichardHowells」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23885449/unable-to-resolve-unable-to-get-local-issuer-certificate-using-git-on-windows

Answers
Ihor Zenich 2018-10-30T12:41:58

The problem is that git by default using the "Linux" crypto backend.\nBeginning with Git for Windows 2.14, you can now configure Git to use SChannel, the built-in Windows networking layer as the crypto backend. This means that it will use the Windows certificate storage mechanism and you do not need to explicitly configure the curl CA storage mechanism: https://msdn.microsoft.com/en-us/library/windows/desktop/aa380123(v=vs.85).aspx\nJust execute:\ngit config --global http.sslbackend schannel\n\nThat should help.\nUsing schannel is by now the standard setting when installing git for Windows, also it is recommended to not checkout repositories by SSH anmore if possible, as https is easier to configure and less likely to be blocked by a firewall it means less chance of failure.",


More about “Unable to resolve "unable to get local issuer certificate" using git on Windows with self-signed certificate” related questions

Unable to resolve symlink

When updating my clearcase (snapshot) view I get the following symlink errors: Unable to resolve symlink "setups.cmd". The symlink target will not be loaded. Unable to resolve symlink &q...

Show Detail

Firebase UI unable to resolve dependency

I added this: implementation 'com.firebaseui:firebase-ui-auth:4.1.0' to the app file but it showed me these errors: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolv...

Show Detail

Unable to resolve dependency android studio

It is my first time to make a new project in android studio. Then i got this type of error after i added the build tools to 27.0.3 and checked the "Enable embedded Maven Repository" in Setting. Can

Show Detail

Unable to resolve these errors?

/*These are the errors occurring while building the project any help regarding it to resolve it thanks. Add while building project it take to much time and after downloading these errors are showin...

Show Detail

Unable to resolve dependencies in Android Studio 3.2.1

I have been getting unable to resolve dependencies error after updating the gradle to 5.1.1. I have tried all the possible solutions in this thread and this one as well. But couldn't fix my problem.

Show Detail

Unable to resolve dependency for android system

I have just started learning Android and I was just creating the first app and I came across this. Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.

Show Detail

Unable to resolve Dependecy Android Studio

I have a problem on building my project. I got this errors: Thanks for your help :D CONFIGURE SUCCESSFUL in 0s ERROR: Unable to resolve dependency for ':uhabits-android@debugAndroidTest/

Show Detail

Unable to resolve dependency for

I am going to do a google map Application using the Android Studio, but I found I can not implement the ''com.google.android.libraries.places:places:2.6.0'', there are 3 warnings: Unable to resolve

Show Detail

Build failed - Unable to resolve dependency for ... Could not resolve project

I'm using android studio version 3.2.1. I have take following repo as a clone and import that project to AS. LAYER Android-XDK-Messenger Github When building the project Android Studio shows foll...

Show Detail

Unable to resolve dependencies with Android Studio and Firebase

Following are the error I get, please help me! ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-core:17.2.0. ERROR:

Show Detail